//
//  HEGoodsDetailsTabBar.h
//  HealthFamily
//
//  Created by 吴欧 on 2020/10/23.
//  Copyright © 2020 honglutec. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HEGoodsModel.h"

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, HEGoodsDetailsTabBarType) {
    HEGoodsDetailsTabBarTypeNomarl, // 显示购物车 + 立即购买
    HEGoodsDetailsTabBarTypeAppointment, // 预约， 仅显示预约购买
    HEGoodsDetailsTabBarTypeOnlyBuy, // 仅立即购买
};

@protocol HEGoodsDetailsTabBarDelegate <NSObject>

- (void)toCartPageHandler;

- (void)addCartHandler;

- (void)buyNowHandler;

@end

@interface HEGoodsDetailsTabBar : UIView

@property (nonatomic, assign) BOOL isFavorite;

@property (nonatomic, assign) BOOL showCart;

@property (nonatomic, assign) BOOL enableQuantity;

@property (nonatomic, assign) HEGoodsDetailsTabBarType barType;

@property (nonatomic, strong) HEGoodsModel *goods;

@property (nonatomic, weak) id <HEGoodsDetailsTabBarDelegate> delegate;

@end

NS_ASSUME_NONNULL_END
